package com.sge.gwt.estudos.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TabPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Estudos implements EntryPoint {
	private HorizontalPanel painelFinancas;
	private TabPanel tabPanel;
	private AbsolutePanel absolutePanel;
	private final Label lblDisciplinas = new Label("Disciplinas");
	private final FlexTable flexTable = new FlexTable();
	public void onModuleLoad() {
		RootPanel rootPanel = RootPanel.get();
		
		tabPanel = new TabPanel();
		tabPanel.setTitle("Abas");
		tabPanel.setVisible(true);
		rootPanel.add(tabPanel, 6, 6);
		tabPanel.setSize("668px", "468px");
		
		absolutePanel = new AbsolutePanel();
		tabPanel.add(absolutePanel, "Estudos", false);
		absolutePanel.setSize("654px", "444px");
		
		
		absolutePanel.add(lblDisciplinas, 10, 10);
		
		absolutePanel.add(flexTable, 10, 46);
		flexTable.setSize("508px", "217px");
		flexTable.setText(0, 0, "Nome");
		flexTable.setText(0, 1, "Categoria");
		flexTable.setText(0, 2, "Andamento");
		
		
		painelFinancas = new HorizontalPanel();
		tabPanel.add(painelFinancas, "Finan\u00E7as", false);
		painelFinancas.setSize("656px", "437px");
	}
}
